/*-------------------------------------------------------------------------
*************************************************************************
 * @doc SPDH
 * @module tfm.h |  
 *  Header file for SPDH Transaction field manager table maintenance functions.
 *
 * Product     :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   : SoftPay 2000 team  
 * <nl>Notes       :
 *
 * @head3 SPDH Functions |
 * @index | SPDH
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 *
 * Revision History
 * ------------------------------------------------------------------------
 $log:  $
 * ------------------------------------------------------------------------
 ********************************************************************************/
#include <project.h>

#ifdef SPDH_DEFINED

#include <util.h>

#define MAX_TFM_FIELDS          43

#define TFM_FILE_NAME         "tfm.dat"

typedef struct TagTFM                   /* Transaction/Function Map */
{
    int  inSoftPayTranCode;
	char chTranType;                    /* Tran type (F/A)         */
	int  inSPDHTranCode;
	char szReqFields[MAX_TFM_FIELDS + 1];   /* Field Ids for trans   */
} TFM_REC;

#define SIZE_TFM_REC  sizeof(TFM_REC)

int inGetTFMTotRecs (void);
int inLoadTFMTransRec (int inTranCode, TFM_REC *psrTFMRec);
int inGetTFMTransFields (int inTrans, TFM_REC *psrTFMRec, int inCrement);

#endif /* SPDH_DEFINED  */
